home *** CD-ROM | disk | FTP | other *** search
File List | 1991-06-28 | 1.5 KB | 64 lines |
-
- Motorola DSP56000 Macro Cross Assembler Version 2.02 91-06-28 16:37:46 pam.asm Page 1
-
-
-
- 1 page 132,63,1,1
- 2 opt rc
- 3
- 4 P:0000 org p:
- 5
- 6
- 7 ; first order high-pass IIR filter
- 8 ; input in a, output in a
- 9 ; frq is -3dB point (fc/fs)
- 10 hpass macro frq,store
- 11 m move x:<store,x1
- 12 m move a,x:<store
- 13 m sub x1,a x:<store+1,x0
- 14 m move #-1.0/@cos(6.28319*frq)*(1.0-@sin(6.28319*frq)),x1
- 15 m macr -x0,x1,a
- 16 m move a,x:<store+1
- 17 m endm
- 18
- 19
- 20 P:0000 200013 loop clr a
- 21 P:0001 5CF000 move y:$ffe0,a1
- 00FFE0
- 22 hpass 90.0/19200.0,rdc
- 29 P:000A 5E7000 move a,y:$ffe0
- 00FFE0
- 30 P:000C 0C0000 jmp <loop
- 31
- 32 X:0000 org x:
- 33
- 34 X:0000 000000 rdc ds 2 ; running DC-level
- 35
- 36 end
- 0 Errors
- 0 Warnings
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-